<?php
	include(ROOTPATH .'include'. DS .'protect.php');
	include(ROOTPATH .'include'. DS .'initUser.php');
	
	$idCode = getQuery('id');
	$id = getId('id');
	$sql = 'SELECT * FROM `'. DB_PRE.'file` WHERE `id` = '. $id;
	$show = $dbs -> select($sql);
	$show = $show[0] ;
	
	$title = $show['name'] ;
	include "header.php" ;

?>
<script type="text/javascript" src="<?php echo HOSTROOT;?>min/f=<?php echo ROOT_PATH;?>upload/scripts/swfobject.js,<?php echo ROOT_PATH;?>upload/scripts/jquery.upload.min.js,<?php echo JS_PATH;?>homeEdit.js"></script>
</head>
<body>
	<?php  require('top.php');  ?>

<div class="pos">
	<div class="contents">
    <form action="" method="post" class="form downLoadForm">
    	<h2><a href="<?php echo urlRewrite('option=media&id='.$idCode);?>"><?php echo toText($show['name']);?></a></h2>
        <ul>
        <li><?php echo $downLoadStatus;?></li>
    	<li><label><?php echo lang_password ;?>: </label><input name="password" id="password" type="text" value="" /></li>
        <li><label></label><input type="submit" class="submit" value="<?php echo lang_submit;?>" /></li>
        <li></li>
        </ul>
    </form>
    
    </div>
</div>
</body>
</html>